#include "LinkQueue.hpp"


int main()
{
    LinkQueue<int> q;
    for(int i = 0; i < 10; i++)
    {
        q.Push(i+1);
    }

    int count = 0;
    while(q.QueueSize() > 1)
    {
        count++;
        int num = q.GetFront();
        q.Pop();
        if(count % 3 == 0)
        {
            std::cout<<num<<"出局!"<<std::endl;
            count = 0;
        }
        else
        {
            q.Push(num);
        }
    }
    std::cout<<q.GetFront()<<"活到了最后!"<<std::endl;
    return 0;
}